define(function(require) {
    var app = require('app');


    app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('/home');

        $stateProvider
            .state('home', {
                url: '/home',
                templateUrl: '../modules/home/home.html',
                // new attribute for ajax load controller
                controllerUrl: '../modules/home/homeCtrl',
                controller: 'homeCtrl'
            })
            .state('home.tag', {
                url: '/tag',
                templateUrl: '../modules/tag/tag.html',
                // new attribute for ajax load controller
                // controllerUrl: 'modules/tag/tagCtrl',
                // controller: 'tagCtrl'
            })
            .state('home.report', {
                url: '/report',
                templateUrl: '../modules/report/report.html',
                // new attribute for ajax load controller
                /*                 controllerUrl: 'modules/report/reportCtrl',
                                 controller: 'reportCtrl'*/
            })
            .state('home.view', {
                url: '/view',
                templateUrl: '../modules/view/view.html',
                // new attribute for ajax load controller
                // controllerUrl: 'modules/view/viewCtrl',
                // controller: 'viewCtrl'
            })
            .state('home.users', {
                url: '/users',
                templateUrl: '../modules/users/users.html',
                // new attribute for ajax load controller
                controllerUrl: '../modules/users/usersCtrl',
                controller: 'usersCtrl',
                // load more controllers, services, filters, ...
            })
            .state('home.customData', {
                url: '/customData',
                templateUrl: '../modules/customData/customData.html',
                // new attribute for ajax load controller
                controllerUrl: '../modules/customData/customData',
                controller: 'customDataCtrl',
                // load more controllers, services, filters, ...
            })
            .state('home.originData', {
                url: '/originData',
                templateUrl: '../modules/originData/originData.html',
                // new attribute for ajax load controller
                controllerUrl: '../modules/originData/originData',
                controller: 'originDataCtrl',
                // load more controllers, services, filters, ...
            })
            .state('home.setting', {
                url: '/setting',
                templateUrl: '../modules/setting/setting.html',
                // new attribute for ajax load controller
                // controllerUrl: 'modules/setting/setting',
                // controller: 'settingCtrl',
                // load more controllers, services, filters, ...
            })
            .state('home.doc', {
                url: '/doc',
                templateUrl: '../modules/doc/doc.html',
                // new attribute for ajax load controller
                controllerUrl: '../modules/doc/doc',
                controller: 'docCtrl',
            });
    }]);
});
